from django.urls import path, include
from . import views
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register(r'userinfo', views.UserViewSet,basename='userinfo')
# router.register(r'display', views.UserViewDisplay,basename='display')

urlpatterns = [
    path('', include(router.urls)),
    path('alipay/', views.AlipayAPIView.as_view()),
    path('callback/', views.AlipayCallbackAPIView.as_view()),
    path('display/<str:id>/', views.UserViewDisplay, name='display'),

    # path('success/<int:id>/', views.pay_success, name='success'),
]
